package inhertancelearn;

import java.util.HashMap;
import java.util.Map;

public class base3 extends base2 {

	/**
	 * @param args
	 */
	public base3(){
		//no matter you do the super() or not the 
		//program will automatically call the construction of the super class
		System.out.println("the base3 class created");
	}
	public base3(String s){
		super("hello");
		System.out.println("the base3 class created the string is "+ s);
	}
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		base3 b1 = new base3();
		base3 b =new base3("world");
		base1 b2 = new base2();
		b2.doSomething(7);
		Map<String,String>map = new HashMap<String,String>();
		map.put("hello", "1");
		map.put("wel", "2");
		try{
		System.out.println(map.get("h"));
		}catch(Exception e){
			e.printStackTrace();
			System.out.println("hello");
		}
		finally{
			System.out.println("hello");
		}
	}

}
